<%@ page contentType="text/html;charset=UTF-8" %>
<div id="userInfo">
  <g:isNotLoggedIn>
    <g:link controller="login"><g:message code="global.login"/></g:link>
  </g:isNotLoggedIn>
  <g:isLoggedIn>
     <g:message code="global.hi"/>,
     <g:set var="userId"><g:loggedInUserInfo field="id"></g:loggedInUserInfo></g:set>
     <g:link class="show" controller="user" action="show" id="${userId}">
      <g:loggedInUserInfo field="firstname"></g:loggedInUserInfo>
     </g:link>
   | <g:link controller="logout"><g:message code="global.logout"/></g:link>
   <br/>
   <span class="date">Ultimo acesso:${loggedInUserInfo(field:"lastLoginDate")}</span>
  </g:isLoggedIn>
</div>